package com.xhlj.service;

import com.xhlj.entity.Post;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhlj.utils.Result;

/**
* @author dell
* @description 针对表【post】的数据库操作Service
* @createDate 2024-03-14 15:28:14
*/
public interface PostService extends IService<Post> {

    Result getPostList();

    Result getPostPage(Integer pageSize, Integer pageNum);

    Result getUserPost(Integer userId);

    Result deletePost(Integer postId, Integer userId);

    Result createPost(Post post);
    Post calculateHeatLevel(Post post);
}
